package com.etc.Config;

import org.springframework.test.annotation.SystemProfileValueSource;

import javax.websocket.Endpoint;
import javax.websocket.server.ServerApplicationConfig;
import javax.websocket.server.ServerEndpointConfig;

import java.util.Set;

/**
 * @program: RookieSocialNetworking
 * @description: websocket监听
 * @author: Mr.单
 * @create: 2020-08-17 18:33
 **/
public class Config implements ServerApplicationConfig {
    @Override
    public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> set) {
       return null;
    }

    @Override
    public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scan) {
        System.out.println("config……"+scan.size());
        //返回   提供了扫描websocket的过滤的作用
        return scan;
    }
}
